package com.my.test.design.decorate.testdecorate;

public class Test {

    public static void main(String[] args) {
        PersonComponent zhangSan = new ZhangeSanComponent();

        Decorate potatoDecorate = new PotatoDecorate(zhangSan);

        Decorate greensDecorate = new GreensDecorate(potatoDecorate);

        greensDecorate.eat();

    }
}
